﻿using System.Collections.ObjectModel;
using System.ComponentModel;

namespace ListView_binding {

  public class BindData {
    public ObservableCollection<Entry> Items { get { return data_; } }
    public void addPair(string k, string v) {
      data_.Add(new Entry(k,v));
    }
    public void remove_at(int n) { if ( n >= 0 && n < data_.Count ) data_.RemoveAt(n); }
    private ObservableCollection<Entry> data_= new ObservableCollection<Entry>();
  }

}
